<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>

<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>

<c:set var="contextPath" value="${pageContext.request.contextPath}" />    

<!doctype html>
<html>
  <head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<title>우리학교</title>
	<link rel="stylesheet" href="${contextPath}/css/login.css" type="text/css" />
	<script type="text/javascript">  
		var contextPath = "${contextPath}";
	</script>
</head>
<body>

	<div id="wrap">
		
		<jsp:include page="common/top.jsp" />
		
		<div id="middle">
			
			<form:form commandName="loginCommand">
			
				<dl id="joinForm">
					<dt id="joinTitle">로그인</dt>
					<dd id="joinValue">
						<dl>
							<dt>아이디</dt>
							<dd><form:input path="email" maxlength="100" /></dd>
							<dd class="error"><form:errors path="email" /></dd>
						</dl>
						<dl>
							<dt>비밀번호</dt>
							<dd><form:password path="password" maxlength="15" /></dd>
							<dd class="error"><form:errors path="password" /></dd>
						</dl>
					</dd> 
					<dd id="warning"></dd>  
					<dd id="joinBtArea">
						<input type="submit" id="joinBt" class="submit" name="joinBt" value="로그인" />
					</dd> 
					<dd id="goFind">
						<a href="${contextPath}/find.html">
							비밀번호를 잊어버리셨나요?
						</a>
					</dd>
					<dd id="goJoin">
						<a href="${contextPath}/join.do">
							회원가입을 안하셨나요?
						</a> 
					</dd>
					<dd id="goCertification">
						<a href="#">
							이메일 인증 메일을 못 받으셨나요?
						</a> 
					</dd>
				</dl>  
			
			</form:form>
			 
		</div>
		
		<jsp:include page="common/bottom.jsp" />		
				  
	</div>
	
</body>
</html>  